<template>
  <h3>这是数据页</h3>
  <ul ref="ul">
    <li v-for="item in list" :key="item.id">{{ item.nm }}</li>
  </ul>
</template>

<script>
export default {
  computed: {
    list() {
      return this.$store.state.module2.list;
    },
  },
  mounted() {
    this.$store.dispatch("getDataAsync").then(() => {
      console.log(this.$refs.ul);
    });
  },
};
</script>
